package com.tzy.collection.mapper;
import com.tzy.common.entity.MyCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 我的收藏表 Mapper 接口
 * </p>
 *
 * @author 姣姣同学
 * @since 2022-03-01
 */
public interface MyCollectionMapper extends BaseMapper<MyCollection> {
    @MapKey("id")
    List<Map<String,Object>> findList();
    @MapKey("id")
    List<Map<String,Object>> findListById(int userId);
}
